<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model app\modules\info\models\info */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="info-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'info_title')->textarea(['rows' => 6]) ?>

    <?= $form->field($model, 'info_author')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'info_from')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'info_url')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'info_thumb')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'info_tag')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'info_summary')->textarea(['rows' => 6]) ?>

    <?= $form->field($model, 'info_content')->textarea(['rows' => 6]) ?>

    <?= $form->field($model, 'info_category')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'info_status')->dropDownList([ '0', '1', ], ['prompt' => '']) ?>

    <?= $form->field($model, 'last_viewed')->textInput() ?>

    <?= $form->field($model, 'date_added')->textInput() ?>

    <?= $form->field($model, 'userid')->textInput() ?>

    <?= $form->field($model, 'views')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'rating')->textInput() ?>

    <?= $form->field($model, 'active')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'show_order')->textInput() ?>

    <?= $form->field($model, 'key_words')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'info_org')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'info_p_id')->textInput() ?>

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
